Skip to main content

Move Item

AutomatR.SFTP.MoveItem

The "Move Item" activity in AutomatR is part of the SFTP activities package, facilitating the transfer of items (files or directories) from one remote path to another on an SFTP server. This activity streamlines the process of managing and organizing files within the SFTP server.

Properties

NameDescription
Input
ClientSpecifies the SFTP client object to connect to the SFTP server.
Server Source PathSpecifies the SFTP server's remote source path where the item (file or directory) is currently located.
Server Destination PathSpecifies the remote SFTP server destination path to which the item will be moved.
OverwriteIf checked, files in the server destination path will be overwritten if they already exist.
Misc
Display NameProvides a customizable name for the activity displayed in the workflow. The display name enhances clarity and organization within the automation project. String variables containing the desired display name.
Optional
DelaySpecifies the amount of time (in seconds) to wait before executing the activity. Useful for handling synchronization issues.

How to use:

  1. Drag and drop the "Move Item" activity onto the workflow.
  2. Configure the properties by specifying the SFTP client, server source path, server destination path, and optionally set a delay or choose to overwrite existing files.
  3. Execute the workflow to transfer the item (file or directory) from the source path to the destination path on the SFTP server.

Example:

Consider an example where the "Move Item" activity is used to move a file named "document.txt" from the "/Source/" directory to the "/Destination/" directory on the SFTP server:

Move Item:
Display Name: "Move Document"
Client: sftpClientObject
Server Source Path: "/Source/document.txt"
Server Destination Path: "/Destination/"
Overwrite: true

In this example, the activity transfers the "document.txt" file from the "/Source/" directory to the "/Destination/" directory on the SFTP server. If the file already exists in the destination path, it will be overwritten based on the specified configuration.